package com.demo.alibaba.RCM;

/**
 * Created by yangshunxing on 2017/2/4.
 */
abstract class Approver {
    protected Approver successor;
    protected String name;

    public Approver(String name){
        this.name = name;
    }
    //设置后继者
    public void setSuccessor(Approver successor) {
        this.successor = successor;
    }

    //抽象请求处理方法
    public abstract void processRequest(PurchaseRequest request);
}
